#include <iostream>
#include "sdm/trainingcontainer.h"

#define UNUSED(x) (void)x

int main(int argc, char *argv[]) {
    UNUSED(argc);
    UNUSED(argv);

    std::string filename = "./input.txt";
    std::cout << std::endl << ">> Inicio da execucao" << std::endl;

    try {
        TrainingContainer t(filename);
        t.run();
    } catch (TrainingContainer::Exception e) {
        switch(e) {
        case TrainingContainer::FileNotFound:
            std::cout << "Arquivo nao encontrado" << std::endl;
            exit(1);
        break;
        }
    }
//    const unsigned int layers[] = {8, 10, 1};
//    Activation *activation = new LogisticActivation();
//    Network network = Network(3, layers, activation);

//    Training training = Training(&network);

//    training.train(filename);
//    training.test(filename);


    std::cout << std::endl << ">> Executou com sucesso!" << std::endl << std::endl;

    exit(0);
}
